package com.worldcup.service;

import com.worldcup.model.Country;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author duwan.zq
 * @date 2018/05/31
 */
public interface CountryService {

    /**
     * get country
     * @param countryId
     * @return
     */
    Country getCountry(Integer countryId);

    /**
     * 获取热门国家
     * @param limit 数量
     * @return
     */
    List<Country> getHotCountry(Integer limit);

    /**
     * get country
     * @param awayTeam
     * @return
     */
    Country getCountry(String awayTeam);

    /**
     * 获取图片
     * @param awayTeam
     * @return
     */
    String getImageUrl(String awayTeam);

    /**
     * list
     * @param group
     * @return
     */
    List<Country> listCountry(String group);

    /**
     * 支持球队
     * @param openid
     * @param countryId
     */
    @Deprecated
    void support(String openid, Integer countryId);

    /**
     * support
     * @param openid
     * @param countryIds
     */
    void support(String openid, List<Integer> countryIds);


}
